package cn.bbdx.qsh.baking.service.impl;

import cn.bbdx.qsh.baking.mapper.BannerMapper;
import cn.bbdx.qsh.baking.pojo.vo.BannerAdminVO;
import cn.bbdx.qsh.baking.pojo.vo.BannerVO;
import cn.bbdx.qsh.baking.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    BannerMapper mapper;

    @Override
    public List<BannerVO> select() {
        return mapper.select();
    }

    @Override
    public List<BannerAdminVO> selectForAdmin() {
        return mapper.selectForAdmin();
    }

    @Override
    public int deleteById(Long id) {
        return mapper.deleteById(id);
    }
}
